From: Debian Rust Maintainers Date: Fri, 17 May 2024 06:38:11 +0000 (+0200) Subject: ubuntu-disable-ppc64el-asm-tests X-Git-Tag: archive/raspbian/1.72.1+dfsg1-1+rpi1~1^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=39646d584ef664266b082b9557f7b49d0fede588;p=rustc.git ubuntu-disable-ppc64el-asm-tests =================================================================== Gbp-Pq: Name ubuntu-disable-ppc64el-asm-tests.patch --- diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 85141836e1..b2c23bb0d9 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -3102,7 +3102,10 @@ declare_lint! { /// ### Example /// /// ```rust,compile_fail - /// # #![feature(asm_experimental_arch)] + /// #![cfg_attr( + /// not(any(target_arch = "powerpc64", target_arch = "s390x")), + /// feature(asm_experimental_arch) + /// )] /// use std::arch::asm; /// /// fn main() { diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 6e9dc880a7..17f6869c18 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -2883,11 +2883,13 @@ declare_lint! { /// /// use std::arch::asm; /// + /// #[cfg(not(any(target_arch = "powerpc64", target_arch = "s390x")))] /// #[naked] /// pub fn default_abi() -> u32 { /// unsafe { asm!("", options(noreturn)); } /// } /// + /// #[cfg(not(any(target_arch = "powerpc64", target_arch = "s390x")))] /// #[naked] /// pub extern "Rust" fn rust_abi() -> u32 { /// unsafe { asm!("", options(noreturn)); }